class AdvertVo {
  
  AdvertData? data;

  AdvertVo({this.data});

  AdvertVo.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new AdvertData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class AdvertData {
  int? id;
  String? title;
  String? image;
  String? link;

  AdvertData({this.id, this.title, this.image, this.link});

  AdvertData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    image = json['image'];
    link = json['link'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['image'] = this.image;
    data['link'] = this.link;
    return data;
  }
}
